<?php echo $this->fetch('about.header.html'); ?>
<style type="text/css">
.botton_submit{border:0;background:#ed5736;height:32px;width:85px;text-align:center;line-height:32px;font-family:"Microsoft YaHei";font-size:15px;color:#fff;cursor:pointer;border-radius:4px;}
</style>
<DIV class="content_bg">
<div class="ABanner" style="background:url(<?php echo $this->_var['adver_list']['ad_img']; ?>) no-repeat top center;"></div>
<div class="ContentAbout">
 <div class="ContentLeft">
  <div class="Lefttop"></div>
  <div class="Leftbody">
  <div class="L1">   
    <?php $_from = $this->_var['category_about']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'cate_about');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['cate_about']):
?>
    <?php if ($this->_var['cate_about']['can_show'] == 0): ?>
    <dl <?php if ($this->_var['now_about']['code'] == $this->_var['cate_about']['code']): ?>class=Choose<?php endif; ?>><a href="<?php echo $this->_var['site_url']; ?>/<?php echo url('app=article&act=abouts&code=' . $this->_var['cate_about']['code']. ''); ?>"><?php echo $this->_var['cate_about']['cate_name']; ?></a><?php if ($this->_var['cate_about']['list']): ?><span class="click_show <?php if ($this->_var['location']['0']['cate_id'] == $this->_var['key']): ?>active<?php endif; ?>" rel="<?php echo $this->_var['key']; ?>"></span><?php endif; ?></dl>
    <?php if ($this->_var['cate_about']['list'] && $this->_var['cate_about']['can_show'] == 0): ?>
      <ul id="ul<?php echo $this->_var['key']; ?>" <?php if ($this->_var['location']['0']['cate_id'] == $this->_var['key']): ?>style="display:block"<?php endif; ?>>
      <?php $_from = $this->_var['cate_about']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cate_list');if (count($_from)):
    foreach ($_from AS $this->_var['cate_list']):
?>
      <?php if ($this->_var['cate_list']['can_show'] == 0): ?>
      <li <?php if ($this->_var['now_about']['code'] == $this->_var['cate_list']['code']): ?>class=Choose<?php endif; ?>><a href="<?php echo $this->_var['site_url']; ?>/<?php echo url('app=article&act=abouts&code=' . $this->_var['cate_list']['code']. ''); ?>"><?php echo $this->_var['cate_list']['cate_name']; ?></a></li>
      <?php endif; ?>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      </ul>
    <?php endif; ?>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div> 
  <div class="L2">
  <?php echo $this->fetch('kd_order.yundanhaobox.html'); ?>
  </div>    
  <div class="Lbo"></div>
  </div>
 </div>
 <div class="ContentRight">
 <div class="padding">
   <div class="location"><img src="<?php echo $this->res_base . "/" . 'images/about/about_content_home.gif'; ?>" /> 当前位置：<?php $_from = $this->_var['_curlocal']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'lnk');$this->_foreach['v'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['v']['total'] > 0):
    foreach ($_from AS $this->_var['lnk']):
        $this->_foreach['v']['iteration']++;
?><?php if ($this->_var['lnk']['url']): ?><a href="<?php echo $this->_var['lnk']['url']; ?>"><?php echo htmlspecialchars($this->_var['lnk']['text']); ?></a><?php if (! ($this->_foreach['v']['iteration'] == $this->_foreach['v']['total'])): ?>&nbsp;&gt;&nbsp;<?php endif; ?><?php else: ?><?php echo htmlspecialchars($this->_var['lnk']['text']); ?><?php endif; ?><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
     <a href="index.php?app=kd_order&act=kehu_print" style="float:right">+条形码打印+</a></div>
   <div class="Atext" style="padding-top:15px">
   <div class="text_title"><img src="<?php echo $this->res_base . "/" . 'images/about/wuliu_iocn.jpg'; ?>" align="absmiddle" /> 如果您是道达快递的合作客户，请输入您的姓名/电话、有效入仓号、有效报关号等条件查询。以下三项输入其中一项查询即可。</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <form action="<?php echo url('app=kd_order&act=kehu'); ?>" method="get"><input type="hidden" value="kd_order" name="app"/><input type="hidden" value="kehu" name="act"/>
      <tr><td>
        姓名/电话：<input name="key" type="text" class="input_text" id="key" value="<?php echo $_GET['key']; ?>" placeholder="请输入姓名或者电话号码" style="width:165px"/>&nbsp;&nbsp;
        入仓号：<input name="rukuhao" type="text" class="input_text" id="rukuhao" value="<?php echo $_GET['rukuhao']; ?>" placeholder="请输入有效入仓号" style="width:165px" maxlength="8"/>&nbsp;&nbsp;
        报关单号：<input name="baoguan" type="text" class="input_text" id="baoguan" value="<?php echo $_GET['baoguan']; ?>" placeholder="请输入有效报关单号" style="width:165px"/>&nbsp;&nbsp;
        <input type="submit" value="查 询" class="botton_submit" />
      </td></tr>
      <tr><td height="39"></td></tr>
      </form>
    </table>
    <table class="table_wuliu">
      <thead>
        <tr><th colspan="2" align="left"><img src="<?php echo $this->res_base . "/" . 'images/about/wuliu_iocn.gif'; ?>" align="absmiddle" /> 合作客户信息</th></tr>
      </thead>    
      <tbody>
      <?php if ($this->_var['kehu']): ?>
        <tr>
          <td width="150" align="right">姓名：</td>
          <td><?php echo ($this->_var['kehu']['lianxiren'] == '') ? '-' : $this->_var['kehu']['lianxiren']; ?></td>
          </tr>
        <tr>
          <td width="150" align="right">入仓号范围：</td>
          <td><?php echo $this->_var['kehu']['rukuhao1']; ?> - <?php echo $this->_var['kehu']['rukuhao2']; ?></td>
        </tr>
        <tr>
          <td width="150" align="right">&nbsp;</td>
          <td style="color:#06F; line-height:180%">
          <?php if ($this->_var['kehu_no']): ?><p style="color:#06F;font-size:13px;">已经使用的入库号：</p>
          <?php $_from = $this->_var['kehu_no']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');$this->_foreach['v'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['v']['total'] > 0):
    foreach ($_from AS $this->_var['list']):
        $this->_foreach['v']['iteration']++;
?><?php if ($this->_var['list']['zhudanNo'] === $_GET['rukuhao']): ?><?php $has_rukuhao = '1'; ?><?php endif; ?><?php echo $this->_var['list']['zhudanNo']; ?><?php if (! ($this->_foreach['v']['iteration'] == $this->_foreach['v']['total'])): ?>、<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <?php else: ?><p style="color:#06F;font-size:13px;">从未使用过入库号 或者 未录入系统中。</p><?php endif; ?></td>
        </tr>
        <tr>
          <td width="150" align="right">报关单号范围：</td>
          <td><?php echo $this->_var['kehu']['baoguan1']; ?> - <?php echo $this->_var['kehu']['baoguan2']; ?></td>
        </tr>
        <tr>
          <td width="150" align="right">&nbsp;</td>
          <td style="color:#06F; line-height:180%">
          <?php if ($this->_var['kehu_no1']): ?><p style="color:#06F;font-size:13px;">已经使用的报关单号：</p>
          <?php $_from = $this->_var['kehu_no1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');$this->_foreach['v'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['v']['total'] > 0):
    foreach ($_from AS $this->_var['list']):
        $this->_foreach['v']['iteration']++;
?><?php if ($this->_var['list']['baoguanNo'] === $_GET['baoguan']): ?><?php $has_baoguan = '1'; ?><?php endif; ?><?php echo $this->_var['list']['baoguanNo']; ?><?php if (! ($this->_foreach['v']['iteration'] == $this->_foreach['v']['total'])): ?>、<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <?php else: ?><p style="color:#06F;font-size:13px;">从未使用过报关单号 或者 未录入系统中。</p><?php endif; ?></td>
        </tr>
        <?php if ($_GET['rukuhao']): ?>        
        <tr>
          <td width="150" align="right">搜索的入仓号：</td>
          <td><?php echo $_GET['rukuhao']; ?> <?php if ($has_rukuhao): ?><font style="color:#FF0000;font-size:13px">（已使用）</font><?php else: ?><font style="color:#00F;font-size:13px">（未使用）</font><?php endif; ?></td>
        </tr>
        <?php endif; ?>
        <?php if ($_GET['baoguan']): ?>
        <tr>
          <td width="150" align="right">搜索的报关单号：</td>
          <td><?php echo $_GET['baoguan']; ?> <?php if ($has_baoguan): ?><font style="color:#FF0000;font-size:13px">（已使用）</font><?php else: ?><font style="color:#00F;font-size:13px">（未使用）</font><?php endif; ?></td>
        </tr>
        <?php endif; ?>
        <?php else: ?>
        <tr>
          <td colspan="2" align="center" style="font-size:13px">请输入正确的姓名/电话、有效入仓号、有效报关号等条件查询</td>
        </tr>        
        <?php endif; ?>
        </tbody>
    </table>
   </div>
  </div>
 </div>
 <div class="clear"></div>
 </div>
</div>
<?php echo $this->fetch('footer_jiandan.html'); ?>